package com.nhjf.admin.common;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.apache.catalina.authenticator.FormAuthenticator;
import org.apache.catalina.connector.Request;
import org.apache.catalina.deploy.LoginConfig;

public class MyAuthenticator extends FormAuthenticator {
	
	@Override
	public boolean authenticate(final Request request, final HttpServletResponse response, final LoginConfig config) throws IOException {
		
		setChangeSessionIdOnAuthentication(true);
		
		return super.authenticate(request, response, config);
	
	}
	
}